from flask import Flask

app = Flask(__name__)


# methods是列表结构
@app.route('/cases', methods=['get'])
def get_learn():
    return {'code': 0, 'msg': 'get success'}


@app.route('/cases', methods=['post'])
def post_learn():
    return {'code': 0, 'msg': 'post success'}


@app.route('/cases', methods=['put'])
def put_learn():
    return {'code': 0, 'msg': 'put success'}


@app.route('/cases', methods=['delete'])
def delete_learn():
    return {'code': 0, 'msg': 'delete success'}


if __name__ == '__main__':
    app.run()